package com.tcm.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tcm.entity.Book;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author Guqier
 * @version 1.0
 * @date 2023/7/2 17:16
 */
@Mapper
public interface BookMapper extends BaseMapper<Book> {

    /**
     * 查询有学习记录的章节数
     * @param itemIds 题目ID列表
     * @return 章节数
     */
    Integer selectLearntBookCountByItemIds(List<Long> itemIds);

}
